<?php
namespace app\index\validate;

use think\Validate;

class Dologin extends Validate{
	protected $rule = [
		'name' => 'require|alphaNum|length:4,16',
        'password' => 'require|alphaNum|length:6,16',
	];
	
	protected $message = [
        'name.require'=>'账号不能为空',
        'name.alphaNum'=>'账号只能包含数字、字母',
        'name.length'=>'账号必须4-16个字符',
        'password.require'=>'密码不能为空',
        'password.alphaNum'=>'密码只能包含字母、数字',
        'password.length'=>'密码必须6-16个字符',
    ]; 
}

?>